package edu.zut.cs.software.estateagent.logon.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import edu.zut.cs.software.base.domain.BaseEntity;

@Table(name = "T_Logon") // 声名数据库表名
@Entity // 声名持久化类
public class Logon extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7468210975146381713L; // 生成序列化ID，防止反序列化失败
	private long id; // 注册ID
	private String L_name; // 注册姓名
	private String L_sex; // 性别
	private long L_tel; // 联系电话
	private String L_mail; // 邮箱
	private String L_identity; // 注册的身份

	// 用注解描述持久化类和数据库表的对应联系
	@GeneratedValue(strategy = GenerationType.AUTO) // 生成主键的方式
	@Id // 映射主键属性
	@Column(name = "L_no") // 声名id在数据库的列名
	public Long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getL_name() {
		return L_name;
	}

	public void setL_name(String l_name) {
		L_name = l_name;
	}

	public String getL_sex() {
		return L_sex;
	}

	public void setL_sex(String l_sex) {
		L_sex = l_sex;
	}

	public long getL_tel() {
		return L_tel;
	}

	public void setL_tel(long l_tel) {
		L_tel = l_tel;
	}

	public String getL_mail() {
		return L_mail;
	}

	public void setL_mail(String l_mail) {
		L_mail = l_mail;
	}

	public String getL_identity() {
		return L_identity;
	}

	public void setL_identity(String l_identity) {
		L_identity = l_identity;
	}

}
